package com.ext.array;

public class Test {
    public static void main(String[] args) {
        int[][] array = {
                {7, 1, 9, 6},
                {4, 2, 8, 1},
                {6, 0, 3, 6}
        };
        int i = 0;
        while (i < array.length) {
            int j = 0;
            while (j < array[i].length) {
                System.out.print(array[i][j] + " ");
                ++j;
            }
            System.out.println();
            ++i;
        }
        System.out.println("--------------------------------");
        i = 0;
        do {
            int j = 0;
            do {
                System.out.print(array[i][j] + " ");
                ++j;
            } while (j < array[i].length);
            System.out.println();
            ++i;
        } while (i < array.length);
        System.out.println("--------------------------------");
        i = 0;
        while (i < array.length) {
            for (int j = 0; j < array[i].length; ++j) {
                System.out.print(array[i][j] + " ");
            }
            System.out.println();
            ++i;
        }
        System.out.println("--------------------------------");
        for (int[] arr1 : array) {
            for (int num : arr1) {
                System.out.print(num + " ");
            }
            System.out.println();
        }
    }
}
